<?php

class IndexController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    }

    public function indexAction()
    {
        // action body
        echo realpath("index.php");
        die;
    }
    public function mongoAction(){
    	Zend_Loader::loadClass(UserModel);
		$data = array(
		    'name' => 'Bob'
		);
		
		$user = new UserModel($data);
		$user->save();
		
		$users = UserModel::all();
		
		foreach ($users as $user) {
			print($user->name."<br />\n");
		}
		die("1");
    }
    public function cassandraAction(){
    	Zend_Loader::loadClass(Zend_Cassandra);
    	$cassandra=new Zend_Cassandra("localhost", $port, $keyspace);
    }
	function myFunction($x){
		if($x>0)
		$this->myFunction(--$x);
		echo $x;
	}
	function testAction(){
		$this->myFunction(5);
		die;
	}

}

